@import '../common/variables.scss';
#personal_center{
  .my_devices{
    .my_devices_category{
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 54px;
      background-color: #ffffff;
      padding: 0 32px;
      margin-bottom: 16px;
      >div{
        display: flex;
        justify-content: flex-start;
        align-items: center;
        height: 100%;
        >p{
          color: #666666;
          font-size: 14px;
          margin-right: 56px;
          cursor: pointer;
          &.active{
            color: #303030;
            position: relative;
            &::after{
              content: "";
              height: 2px;
              background-color: #303030;
              width: 100%;
              position: absolute;
              bottom: -15px;
              left: 0;
            }
          }
        }
      }
      >p{
        color: #0B95FD;
        font-size: 14px;
        cursor: pointer;
        &:hover{
          color: #047AD4;
        }
      }
      >.icon-addimage{
        display: none;
      }
    }
    .my_devices_content{
      min-height:  calc(100vh - 88px - 234px - 41px - 40px - 70px);;
      .my_devices_item{
        background-color: #ffffff;
        >div.my_devices_item_header{
          margin-top: 16px;
          padding: 24px 32px 0;
          background-color: #ffffff;
          display: flex;
          align-items: flex-start;
          .el-image{
            width: 108px;
            height: 108px;
            margin-right: 24px;
          }
          .my_devices_item_content{
            width: calc(100% - 132px);
            >div.my_devices_item_show{
              >p{
                color: #666666;
                font-size: 14px;
                margin-top: 16px;
              }
              .my_devices_item_show_title{
                display: flex;
                justify-content: space-between;
                width: 100%;
                align-items: center;
                >p:first-of-type{
                  color: #303030;
                  font-size: 24px;
                }
                >p:last-of-type{
                  color: #FF002B;
                  font-size: 14px;
                  cursor: pointer;
                  margin-left: 24px;
                  &:hover{
                    color:#D20A2C
                  }
                }
                .del_word{
                  display: block;
                  white-space: nowrap;
                }
                i{
                  display: none;
                }
              }
              .first_type{
                background-color: #F9F9F9;
                padding: 1px 8px ;
                color: #666666;
                font-size: 14px;
                margin-top: 16px;
                border-radius: 2px;
                display: inline-block;
              }
            }

          }
        }
        >div.my_devices_item_button{
          background-color: #ffffff;
          height: 56px;
          line-height: 56px;
          text-align: center;
          position: relative;
          >span{
            width: 32px;
            height: 32px;
            display: inline-block;
            line-height: 32px;
            border-radius: 50%;
            position: absolute;
            top: 50%;
            margin-top: -16px;
            left: 50%;
            margin-left: -16px;
            cursor: pointer;
            &:hover{
              background-color: #f9f9f9;
              svg{
                color: #303030;
              }
            }
          }
          svg{
            width: 16px;
            height: 16px;
            &.icon-arrow_normal{
              top: 4px;
              position: relative;
            }
            &.icon-arrow_actived{
              top: 2px;
              position: relative;
            }
          }
        }
        >div.my_devices_item_hide{
          margin-left: 164px;
          margin-bottom: 16px;
          background-color:  #ffffff;
     
          // transition: all 0.3s ease-in-out;
          .fontsize16{
            font-size: 16px;
            color: #303030;
            font-weight: bold;
            margin-top: 32px;
          }
          .fontsize14{
            font-size: 14px;
            color: #303030;
            margin-top: 12px;
            &.margintop8 {
              margin-top: 8px;
            }
            >span:first-of-type{
              width: 246px;
              color: #303030;
              display: inline-block;
            }
            >span:last-of-type{
              color: #666666;
            }
            >span.outwarranty{
              color: #ff002b;
            }
            >span.underwarranty{
              color: #0b95fd;
            }
          }
          .fontsize14color{
            font-size: 14px;
            color: #666666;
            margin-top: 8px;
          }
          .warranty_benefits_item{
            font-size: 14px;
            color: #303030;
            margin-top: 12px;
            &.margintop8{
              margin-top: 8px;
            }
            .iconfont{
              color: #303030;
              margin-left: 32px;
              &.icon-no_normal{
                display: none;
              }
              &.icon-yes_normal{
                display: inline-block;
              }
            }
            i{
              font-size: 14px;
            }
            &.disabled{
              color: #CCCCCC;
              .iconfont{
                color: #CCCCCC;
                &.icon-no_normal{
                  display: inline-block;
                }
                &.icon-yes_normal{
                  display: none;
                }
              }
            }
          }
          .el-button{
            margin-top: 24px;
            min-width: 216px;
          }
        }
       
      }
      .el-pagination{
        margin-top: 24px;
        button:disabled,
        button{
          background-color: #F9F9F9;
        }
        .el-pager li{
          background-color: #F9F9F9;
          color: #666666;
          &.active{
            color: #303030;
          }
        }
        .el-input__inner{
          background-color: #F9F9F9;
          border-color: #CCCCCC;
          border-radius: 2px;
        }
      }
      .more{
        clear: both;
        text-align: center;
        margin-top: 24px;
        display: none;
        .el-button{
          width: 160px;
          height: 32px;
          line-height: 32px;
          border-radius: 20px;
          padding: 0;
        }
      }
    }
  
  }
  // pc端样式
  .my_devices .my_devices_dialog{
    &.el-dialog__wrapper{
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .el-dialog{
      margin-top: 0 !important;
      width: 656px;
    }
    .el-dialog__header{
      padding: 26px 32px 24px;
      .el-dialog__headerbtn{
        top: 16px;
        right: 16px;
      }
    }
    .el-dialog__body{
      padding: 0px 32px;
  
    }
    .el-dialog__footer{
      text-align: center;
      padding: 0px 0 32px;
      .el-button{
        height: 32px;
        line-height: 32px;
        padding: 0 15px;
        width: 104px;
        &:not(:last-of-type){
          margin-right: 24px;
        }
      }
    }
  
  }
// 手机端
  .my_devices .my_devices_dialog.phoneShow {
    width: 100%;
    &.el-dialog__wrapper{
      display: flex;
      align-items: flex-end;
    }
    .el-dialog{
      margin: 0 ;
      border-radius: 16px 16px 0 0;
      .el-dialog__header{
        height: 53px;
        text-align: center;
        padding: 16px 20px;
        border-bottom: 1px solid #EBEAEA;
      }
      .el-dialog__body{
        padding: 20px  20px 0;
        min-height: 240px;
        .my_devices_add{
          margin-bottom: 0px;
        }
      }
      .my_devices_add .el-input{
        margin: 4px 0 0;
      }
      .el-dialog__footer{
        padding-bottom: 16px;
      }
    }
  }
  
  .my_devices .my_devices_del{
    margin-bottom: 70px;
    .title{
      color: #303030;
      font-size: 16px;
      margin-bottom: 8px;
    }
    p{
      color: #666666;
      font-size: 14px;
    }
  }
  // pc端的添加
  .my_devices .my_devices_dialog.pcShow  .my_devices_add{
    margin-bottom: 78px;
    p{
      color: #666666;
      font-size: 14px;
    }
    .el-input{
     margin: 4px 0 0px; 
     .el-input__inner{
      padding-left: 36px;
    }
    }
    .el-input__prefix{
      left: 16px;
      .iconfont{
        height: 100%;
        width: 25px;
        text-align: center;
        transition: all .3s;
        line-height: 40px;
      }
    }
  
  }

  .my_devices_header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    .back{
      color: #CCCCCC;
      font-size: 14px;
    }
    .my_devices_header_title{
      color: #303030;
      font-size: 16px;
      font-weight: 700;

    }
    .blue{
      color: #0B95FD;
      font-size: 14px;
    }
  }
//手机端端的添加
  .my_devices .my_devices_dialog.phoneShow  .my_devices_add{
    >p{color: #666666;font-size: 12px;}
    .el-input__suffix{
      right: 16px;
      i{color: #CCCCCC;font-size: 16px;}
    }
    .el-input__inner{color: #363434;}


  }
  // pc端 无数据
  .my_devices .my_devices_no_data.pcShow{
    background-color: #ffffff;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    height: 465px;
    height: calc(100vh - 88px - 234px - 41px - 40px - 70px);
    .el-button{
      margin-top: 16px;
      padding: 0 40px;
    }
  }
  // 手机端无数据
  .my_devices .my_devices_no_data.phoneShow{
    background-color: #F9F9F9;
    height: 134px;
    padding: 40px 20px;
    text-align: center;
    .tip_bind{
      color: #666666;
      font-size: 14px;
      margin-top: 8px;
    }
    .opts_add{
      font-size: 0;
      height: 24px;
      line-height: 24px;
      i{font-size: 20px;}
      span{
        color: #303030;
        font-size: 14px;
        margin-left: 8px;
        vertical-align: top;
      }
    }
  }
  
  .my_devices .my_devices_dialog_bind{
    .el-dialog__header {
      padding: 26px 32px 0px;
    }
    .el-dialog__body{
      max-height: 622px;
      overflow: auto;
    }
    .my_devices_bind{
      display: flex;
      align-items: flex-start;
      border-bottom: 1px solid #EBEAEA;
      padding: 24px 0;
      &:last-of-type{
        border-bottom: none;
      }
      .el-image{
        width: 124px;
        height: 124px;
        margin-right: 16px;
      }
      .my_devices_bind_title{
        color: #303030;
        font-size: 16px;
        font-weight: bold;
      }
      .my_devices_bind_sectitle{
        color: #666666;
        font-size: 14px;
        margin-top: 16px;
      }
      .first_type{
        background-color: #F9F9F9;
        padding: 1px 8px ;
        color: #666666;
        font-size: 14px;
        margin-top: 16px;
        border-radius: 2px;
        display: inline-block;
      }
    }
    .el-dialog__footer{
      padding: 20px 0 32px;
    }
  }

  .my_devices_dialog.my_devices_dialog_bind.phoneShow{
    display: none;
    text-align: center;
    .el-dialog__header{
      padding: 16px 16px 0;
    }
    .my_devices_bind{
      display: block;
      padding: 0px 0 16px;
      font-size: 0;
      border-bottom: 1px solid #EBEAEA;
      &:last-of-type{
        border-bottom:none;
        padding: 0 0 24px;
      }
      .my_devices_item_content{
        text-align: left;
        .first_type{
          background-color: #F9F9F9;
          padding: 1px 8px ;
          color: #666666;
          font-size: 14px;
          margin-top: 12px;
          border-radius: 2px;
          display: inline-block;
        }
      }
      .my_devices_bind_title{margin-top: 12px;}
      .my_devices_bind_sectitle{
        margin-top: 8px;
      }
      .el-image {
        width: 96px;
        height: 96px;
        margin-right: 0;
      }
    } 
  }
  // 手机端删除
  .my_devices_dialog.phoneShowDel{
    background-color: rgba(48, 48, 48, .2);
    .el-dialog__header{display: none;}
    .el-dialog{
      margin:  0 20px;
      border-radius: 8px;
    }
    .el-dialog__body{
      padding: 16px 20px;
      color: #666666;
      font-size: 14px;
    }
    .el-dialog__footer{
      padding: 0;
      border-top: 1px solid  #EBEAEA;
      height: 54px;
      >div{
        >span{
          display: inline-block;
          width: 50%;
          height: 54px;
          line-height: 54px;text-align: center;
          &.cancle{color: #CCCCCC;font-size: 14px;}
          &.del{color: #FF002B;font-size: 14px;}
        }
      }

    }

  }
}


.fade-enter {opacity: 0;}
.fade-leave{opacity: 1;}
.fade-leave-active,.fade-enter-active {
　transition:opacity 0.4s ease-in-out;
}

.slide-fade-enter-active {transition: all .4s ease-in;}
.slide-fade-leave-active {transition: all .4s ease-in-out;}
.slide-fade-enter, .slide-fade-leave-to{transform: translateY(5px);opacity: 0;}


#personal_center{
  @include respond('768'){
    padding-bottom: 0;
    .personal_content{
  
      &.my_devices{
        margin: 100px 0 0 ;
        .title{
          padding-left: 20px;
        }
      }
      .my_devices{
        .my_devices_category{
            padding: 0 20px;
            margin-bottom: 0;
            >div{
              // width: calc(100% - 20px);
              width: 100%;
              overflow: hidden;
              >p{margin-right: 20px; white-space: nowrap;}
            }
            >p.add_word{display: none;}
            .icon-addimage{display: none;font-size: 14px; 
              color: #0B95FD;
              &:hover{
                color: #047AD4;
              }}
          

        }

        .my_devices_content.phoneShow{
          min-height: auto;
          overflow: hidden;
          .opts_add{
            display: block;
            text-align: center;
            height: 48px;
            font-size: 0;
            line-height: 48px;
            i{font-size: 20px;color: #363434;}
            span{
              color: #303030;
              font-size: 14px;
              margin-left: 8px;
              vertical-align: top;
            }
          }
          .my_devices_item{
            display: inline-block;
            width: 100vw;
            >div.my_devices_item_header{
              padding: 16px 20px;
              margin-top: 0px;
              .el-image{
                width: 106px;
                height: 106px;
                margin-right: 8px;
              }
              .my_devices_item_content{
                width: calc(100% - 114px);
                >div.my_devices_item_show {
                  .my_devices_item_show_title {
                    font-size: 14px;
                    color: #303030;
                    margin-left: 0;
                    text-overflow: -o-ellipsis-lastline;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;
                  }
                  .first_type{
                    margin-top: 8px;
                  }
                  >p{
                    margin-top: 8px;
                  } 
                } 
              }
            }
            >.my_devices_item_details_btn{
              text-align: center;
              height: 40px;
              line-height: 40px ;
              color: #303030;font-size: 14px;
              border-top: 1px solid#EBEAEA;
              background-color: #ffffff;
            }
            padding-bottom: 12px;
            background-color: #f9f9f9;
            &.lastDom{
              padding-bottom: 40px;
            }

          }
          .my_devices_item_container{
            width: calc(100vw + 80px);
            white-space: nowrap;
            .my_devices_item_del{
              display: inline-block;
              background-color: rgba(255, 0, 43, 0.06);
              width: 80px;
              height: 178px;
              vertical-align: top;
              text-align: center;
              line-height: 178px;
              i{
                color: #FF002B;
                font-size: 24px;
              }
            }
            &[data-type="0"]{
              transform: translate3d(0,0,0);
            }
            &[data-type="1"]{
              transform: translate3d(-80px,0,0);
            }

            
          }
        }
        .my_devices_del{
          margin-bottom: 32px;
          .title{
            padding-left: 0;
          }
        }


        .more{
          display: block;
        }
        .el-pagination{
          display: none;
        }


      }

    }
  }
}

// 设备产品详情
.devices_details_phone{
  position: fixed;
  top: 0;
  width: 100%;
  left: 100%;
  height: 100%;
  z-index: 20;
  transition: all .4s ease;
  background-color: #F9F9F9;
  overflow: auto;
  &.show{
     left: 0;
  }
  .d_d_p_h{
    position: fixed;
    top:$menuPhoneHeight;
    border-bottom: 1px solid #EBEAEA;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 10;
    background-color: #FFFF;
    padding: 0 20px;
    i{
      font-size: 18px;
    }
  }
  .fontsize16{
    padding: 16px 0;
    text-align: center;
    color: #303030;
    font-size: 16px;
    font-weight: 700;
  }
  .fontsize14{
    color: #303030;
    font-size: 14px;
    >span{
      display: block;
      &:last-of-type{
        color: #666666;
        margin-top: 6px;
      }
    }
  }
  .d_d_p_c{
    margin-top: 44px + $menuPhoneHeight;
    text-align: center;
    font-size: 0;
    background-color: #FFF;
    margin-bottom: 12px;
    .el-image{
      width: 96px;
      height: 96px;
      margin: 20px auto 0;
    }
    .my_devices_item_content{
      text-align: left;
      padding:  0 20px;
      .product_title{
        font-size: 14px;
        color: #303030;
        margin-top: 12px;
      }
      .order_no{
        font-size: 14px;
        color: #666666;
        margin-top: 8px;
      }
      .first_type{
        font-size: 14px;
        color: #666666;
        margin-top: 8px;
        background-color: #F9F9F9;
        border-radius: 2px;
        margin-bottom: 16px;
        display: inline-block;
        padding: 3px 8px;
      }
    }
  }
  .d_d_p_r{
    background-color: #FFF;
    margin-bottom: 12px;
    padding: 0 20px;
   
  }
  .d_d_p_wr{
    background-color: #ffffff;
    padding: 0  20px 24px;
    >a{
      display: block;
      width: 100%;
      margin-top: 24px;
      >.el-button{width: 100%;}
    }
    .warranty_benefits_item{
      font-size: 14px;
      color: #303030;
      margin-top: 8px;
      padding: 8px 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      &.margintop8{
        margin-top: 0px;
      }
      .iconfont{
        color: #303030;
        margin-left: 32px;
        &.icon-no_normal{
          display: none;
        }
        &.icon-yes_normal{
          display: inline-block;
        }
      }
      i{
        font-size: 16px;
      }
      &.disabled{
        color: #666666;
        .iconfont{
          color: #666666;
          &.icon-no_normal{
            display: inline-block;
          }
          &.icon-yes_normal{
            display: none;
          }
        }
      }
    }
  }
}